package cn.karent.client.dto;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import jakarta.validation.constraints.NotBlank;
import lombok.*;

/**
 * @author wanshengdao
 * @date 2025/4/15
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class PublishReq {

    @NotBlank(message = "种类不能为空")
    private String category;

    @NotBlank(message = "名称不能为空")
    private String name;

    @NotBlank(message = "内容不能为空")
    private String content;

}
